package com.situ.employee2024.service;

import com.situ.employee2024.model.Employee;
import com.situ.employee2024.util.PaginateInfo;

import java.util.List;

/**
 * 功能：
 *
 * @author 千堆雪
 * @version 1.0.0
 * @since 2024/1/10
 * <p>
 * created by 千堆雪 on 2024/1/10, last modified by 千堆雪 on 2024/1/10
 */
public interface EmployeeService {
    //查询所有员工列表
    List<Employee> findAll(PaginateInfo pi, Employee employee);

    //根据主键查询唯一员工
    Employee findById(Integer id);


    //批量删除，返回受影响的行数
    int deleteByIds(Integer[] ids);

    /**
     * 保存一个员工对象
     */
    boolean save(Employee employee);


    boolean update(Employee employee);
}
